how to construct square